<template>
	<view class="head-box">
		<view class="left-box">
			<text class="title">{{title}}</text>
			<text class="type">{{type}}</text>
		</view>
		<view class="right-box" @click="handleRefresh">
			<text class="change">换一批</text>
			<!-- <van-icon name="replay" :size="iconFontSize" color="#061B41" /> -->
			<u-icon name="reload" color="#061B41" size="26"></u-icon>
		</view>
	</view>
</template>

<script>
	export default {
		name: "Platehead",
		props: {
			title: String,
			type: String
		},
		data() {
			return {
				currentPage: 1
			};
		},
		methods: {
			handleRefresh() {
				this.currentPage++
				let data = {
					'currentPage': this.currentPage,
					'title': this.title
				}
				this.$emit('refresh', data)
			}
		}
	}
</script>

<style scoped>
.head-box {
  display: flex;
  justify-content: space-between;
  margin-bottom: 48rpx;
  margin-top:48rpx;
  align-items: flex-end;
}

.left-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.title {
  font-size: 32rpx;
  font-family: Alibaba PuHuiTi;
  font-weight: bold;
  color: rgba(6, 27, 65, 0.75);
  line-height: 32rpx;
  margin-bottom: 10rpx;
}

.type {
  font-size: 20rpx;
  font-family: Alibaba PuHuiTi;
  font-weight: 400;
  color: rgba(6, 27, 65, 0.75);
  line-height: 20rpx;
}

.right-box {
  display: flex;
  align-items: center;
}

.change {
  font-size: 20rpx;
  font-family: Alibaba PuHuiTi;
  font-weight: 700;
  color: rgba(6, 27, 65, 0.75);
  line-height: 20rpx;
  margin-right: 8rpx;
}
</style>
